package spring.cloud.tasks.common.status;

/**
 * 执行状态
 */
public class TaskItemStatus {
    public static final String status_init = "init";//默认
    public static final String status_handing = "handing";
    public static final String status_success = "success";
    public static final String status_fail = "fail";
    public static final String status_timeout = "timeout";

    public static boolean isTerminalState(String taskItemStatus) {
        return status_success.equals(taskItemStatus) || status_fail.equals(taskItemStatus) || status_timeout.equals(taskItemStatus);
    }
}
